/*
 ** 全局注册组件导出
 */
const modulesOne = import.meta.globEager('@/components/*.vue')
const modulesTwo = import.meta.globEager('@/components/*/*.vue')
const allModule = Object.assign({}, modulesOne, modulesTwo);
const all = Object.keys(allModule).filter(item => true)
export default app => {
    all.forEach(item => {
        const component = allModule[item]?.default
        app.component(component.__name, component)
    })
}